<?php

class Users_Form_Newcomment extends Zend_Form {

    public function init() {
        $this->setMethod('post');

        $comment = new Zend_Form_Element_Textarea('comment');
        $comment->setLabel('Make a new comment:')
                ->setOptions(array('placeholder' => 'Make a new comment', 'cols' => '40', 'rows' => '4'))
                ->setRequired(true);

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Post Comment')
                ->setOptions(array('class' => 'submit'))
                ->setAttrib('class', 'btn btn-success');
        
        $this->addElements(array($comment,$submit));
        
    }

}

